home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 March / EnigmA AMIGA RUN 05 (1996)(G.R. Edizioni)(IT)[!][issue 1996-03][Skylink CD IV].iso / earcd / unix / amwn222r.lha / Install_AmiWinUpd next >
Text File  |  1995-12-05  |  16KB  |  505 lines

  1. (procedure check-one-file-one-version
  2.  (set fpath (tackon @default-dest fname))
  3.  (if (exists fpath) (
  4.   (set amiwin-version (getversion fpath))
  5.   (if (not(= amiwin-version fversion))
  6.    (abort (cat "Your file " fname " does not have the correct version\n"));
  7.   )
  8.  ))
  9.  
  10. (procedure check-one-file-two-versions
  11.  (set fpath (tackon @default-dest fname))
  12.  (if (exists fpath) (
  13.   (set amiwin-version (getversion fpath))
  14.   (if (not(= amiwin-version fversion))
  15.    (if (not(= amiwin-version fversion2))
  16.     (abort (cat "Your file " fname " does not have the correct version\n"));
  17.    )
  18.   )
  19.  ))
  20.  
  21. (procedure check-one-file-three-versions
  22.  (set fpath (tackon @default-dest fname))
  23.  (if (exists fpath) (
  24.   (set amiwin-version (getversion fpath))
  25.   (if (not(= amiwin-version fversion))
  26.    (if (not(= amiwin-version fversion2))
  27.     (if (not(= amiwin-version fversion3))
  28.      (abort (cat "Your file " fname " does not have the correct version\n"));
  29.     )
  30.    )
  31.   )
  32.  ))
  33.  
  34. (procedure check-one-file-size
  35.  (set fpath (tackon @default-dest fname))
  36.  (if (exists fpath) (
  37.   (if (not (= (getsize fpath) fsize))
  38.    (abort (cat "Your file " fname " does not have the correct version\n"));
  39.   )
  40.  ))
  41.  
  42. (procedure check-amiwin-version
  43.  (set amiwin-version (getversion (tackon @default-dest "bin/AmiWin")))
  44.  (if (not(= amiwin-version 131084))
  45.   (if (not(= amiwin-version 131086))
  46.    (if (not(= amiwin-version 131088))
  47.     (abort "You do not have AmiWin 2.12r, 2.14r or 2.16r installed.\n")
  48.    )
  49.   )
  50.  )
  51.  (complete 1)
  52.  (working)
  53.  (set n 0)
  54.  (while (set fname (select n
  55.   "xse/multibuf.xse" "xse/sync.xse" "xle/mitmisc.xle" "xle/multibuf.xle"
  56.   "xle/shape.xle" "xle/sync.xle" "xtp/amitcp.xtp" "xtp/as225.xtp"
  57.   "libs/xau.library" "libs/xice.library" "libs/xmu1.library"
  58.   "libs/xsm.library" "libs/xtrans.library" "bin/appres" "bin/atobm"
  59.   "bin/bdftopcf" "bin/Bitmap" "bin/bmtoa" "bin/dclock" "bin/ico"
  60.   "bin/maze" "bin/oclock" "bin/x11perf" "bin/xauth" "bin/xbench"
  61.   "bin/xclock" "bin/xdpyinfo" "bin/xeyes" "bin/xfd"
  62.   "bin/xhost" "bin/xkill" "bin/xload" "bin/xlogo" "bin/xlsatoms"
  63.   "bin/xlsclients" "bin/xlsfonts" "bin/xmodmap" "bin/xpmroot"
  64.   "bin/xprop" "bin/xrefresh" "bin/xrubik" "bin/xset" "bin/xsetroot"
  65.   "bin/xwd" "bin/xwininfo" "bin/xwud" "")) (
  66.   (set fversion (select n
  67.    131084 131084 131072 131072 131072 131072 131072 131072
  68.    131072 131083 131083 131072 131083 131084 131084 131084
  69.    131084 131084 131084 131084 131084 131072 131084 131072
  70.    131084 131072 131084 131084 131084 131084 131084 
  71.    131084 131084 131084 131072 131084 131084 131084 131084 
  72.    131084 131084 131084 131084 131084 131084 131084 ))
  73.   (check-one-file-one-version)
  74.   (set n (+ n 1))
  75.  ))
  76.  (complete 2)
  77.  (working)
  78.  (set n 0)
  79.  (while (set fname (select n
  80.   "xsd/aga-1.xsd" "xsd/aga-8.xsd" "xsd/rtg-1.xsd" "libs/xaw.library"
  81.   "libs/xaw3d.library" "libs/xlib.library" "libs/xmu2.library"
  82.   "libs/xpm.library" "bin/mkfontdir" "bin/twm"
  83.   "bin/xcalc" "bin/xdaliclock" "")) (
  84.   (set fversion (select n
  85.    131084 131084 131084 131083 131084 131083 131083 131084
  86.    131072 131072 131083 131084 ))
  87.   (set fversion2 (select n
  88.    131086 131086 131086 131088 131088 131086 131086 131088
  89.    131088 131086 131088 131088 ))
  90.   (check-one-file-two-versions)
  91.   (set n (+ n 1))
  92.  ))
  93.  (complete 3)
  94.  (working)
  95.  (set n 0)
  96.  (while (set fname (select n
  97.   "libs/xfont.library" "libs/xt.library" "")) (
  98.   (set fversion (select n
  99.    131084 131083))
  100.   (set fversion2 (select n
  101.    131086 131086))
  102.   (set fversion3 (select n
  103.    131088 131088))
  104.   (check-one-file-three-versions)
  105.   (set n (+ n 1))
  106.  ))
  107.  (complete 4)
  108.  (working)
  109.  (set n 0)
  110.  (while (set fname (select n
  111.   "lib/x11/fvwm/FvwmAudio" "lib/x11/fvwm/FvwmAuto" "lib/x11/fvwm/FvwmBack"
  112.   "lib/x11/fvwm/FvwmBanner" "lib/x11/fvwm/FvwmClean" "lib/x11/fvwm/FvwmDebug" 
  113.   "lib/x11/fvwm/FvwmIconBox" "lib/x11/fvwm/FvwmIdent" "lib/x11/fvwm/FvwmPager" 
  114.   "lib/x11/fvwm/FvwmScroll" "lib/x11/fvwm/FvwmWinList" "lib/x11/fvwm/GoodStuff" 
  115.   "")) (
  116.   (set fsize (select n
  117.    16324 11760 16084 85864 18384 15132 40576 21464 37424 27084
  118.    24048 30044 ))
  119.   (check-one-file-size)
  120.   (set n (+ n 1))
  121.  ))
  122. )
  123.  
  124. (procedure select-destination-directory
  125.  (set @default-dest
  126.   (askdir
  127.    (prompt "Select the directory where you have "
  128.     "installed AmiWin 2.12 reg, 2.14 reg or 2.16 reg. The default is "
  129.     "probably correct.")
  130.    (help "Please specify the directory where you have "
  131.     "installed AmiWin 2.12 reg, 2.14 reg or 2.16 reg. The default is "
  132.     "the X11: directory, i.e. the likely place of "
  133.     "your AmiWin installation.")
  134.    (default "X11:")
  135.   )
  136.  )
  137. )  
  138.  
  139. (procedure patchonefile
  140.  (copyfiles
  141.   (source (tackon srcdir srcfile))
  142.   (dest "T:")
  143.   (newname "oldfile")
  144.  )
  145.  
  146.  (working)
  147.  (run (cat "\"" (tackon source-dir "bin/spatch") "\" -oT:newfile \"-p" pchfile "\" T:oldfile"))
  148.  
  149.  (copyfiles
  150.   (source "T:newfile")
  151.   (dest srcdir)
  152.   (newname srcfile)
  153.  )
  154.  
  155.  (delete "T:oldfile")
  156.  (delete "T:newfile")
  157.  (working)
  158. )
  159.  
  160. (procedure delete-old-files
  161.  (working)
  162.  (set n 0)
  163.  (while (set fname (select n
  164.   "xsd/aga-1.xsd.000" "xsd/aga-1.xsd.030" "xsd/aga-8.xsd.000"
  165.   "xsd/aga-8.xsd.030" "xsd/cybergraphx-15.xsd.000"
  166.   "xsd/cybergraphx-15.xsd.030" "xsd/cybergraphx-8.xsd.000"
  167.   "xsd/cybergraphx-8.xsd.030" "xsd/hrg-15.xsd.000" "xsd/hrg-15.xsd.030"
  168.   "xsd/hrg-8.xsd.000" "xsd/hrg-8.xsd.030" "xsd/picasso-l-15.xsd.000"
  169.   "xsd/picasso-l-15.xsd.030" "xsd/picasso-l-8.xsd.000"
  170.   "xsd/picasso-l-8.xsd.030" "xsd/rtg-1.xsd.000" "xsd/rtg-1.xsd.030"
  171.   "xsd/cybergraphx-8.xsd" "xsd/cybergraphx-15.xsd"
  172.   "xsd/hrg-8.xsd" "xsd/hrg-15.xsd" "xsd/picasso-l-15.xsd"
  173.   "xsd/picasso-l-8.xsd" "bin/AmiWin" "bin/AmiWin.000" "bin/AmiWin.030"
  174.   "bin/editres" "bin/fvwm" "bin/xclipboard" "bin/xcutsel"
  175.   "bin/xearth" "bin/xearth.000" "bin/xearth.030" "bin/xmag"
  176.   "bin/xstdcmap" "man/xclock.man" "man/xdpyinfo.man" "man/oclock.man" 
  177.   "man/twm.man" "man/xauth.man" "man/xhost.man" "man/mkfontdir.man" 
  178.   "man/xcalc.man" "man/xwininfo.man" "man/xkill.man" "man/xsetroot.man" 
  179.   "man/xset.man" "man/xlsclients.man" "man/bdftopcf.man" "man/appres.man" 
  180.   "man/bitmap.man" "man/x11perf.man" "man/xfd.man" "man/xlogo.man" 
  181.   "man/xlsatoms.man" "man/xlsfonts.man" "man/xmodmap.man" "man/xprop.man" 
  182.   "man/xrefresh.man" "man/xwd.man" "man/xwud.man" "man/dclock.man" 
  183.   "man/fvwm.man" "man/GoodStuff.man" "man/FvwmBanner.man" "man/FvwmDebug.man" 
  184.   "man/FvwmClean.man" "man/FvwmIdent.man" "man/FvwmPager.man" "man/FvwmWinList.man" 
  185.   "man/FvwmScroll.man" "man/FvwmBacker.man" "man/FvwmAudio.man" "man/FvwmIconBox.man" 
  186.   "man/FvwmAuto.man" "man/xpmroot.man" "man/ico.man" "man/maze.man" "man/xdaliclock.man" 
  187.   "man/xeyes.man" "man/xload.man" "man/xrubik.man" "Help/AmiWin.guide"
  188.   "Help/AmiWin.dvi" "Help/AmiWin.ps" "bin/awdecrypt" "")) (
  189.    (if (exists (tackon @default-dest fname))
  190.     (delete (tackon @default-dest fname))
  191.    )
  192.    (set n (+ n 1))
  193.  ))
  194. )
  195.  
  196. (procedure patch-to-214
  197.  (working)
  198.  (set n 0)
  199.  (while (set srcfile (select n
  200.   "xfont.library" "xlib.library" "xmu2.library"
  201.   "xt.library" "twm" "")) (
  202.    (set reldir (select n
  203.     "libs" "libs" "libs" "libs" "bin"))
  204.    (set srcdir (tackon @default-dest reldir))
  205.    (set fversion (select n
  206.     131084 131083 131083 131083 131072))
  207.    (set fpath (tackon srcdir srcfile))
  208.    (if (exists fpath) (
  209.     (if (= fversion (getversion fpath)) (
  210.      (set pchfile (tackon (tackon (tackon source-dir "x11") reldir) (select n
  211.       "xfont.14pch" "xlib.14pch" "xmu2.14pch" "xt.14pch" "twm.14pch")
  212.      ))
  213.      (patchonefile)
  214.     ))
  215.    ))
  216.    (set n (+ n 1))
  217.  ))
  218.  
  219.  (complete 25)
  220.  (working)
  221.  (set n 0)
  222.  (while (set srcfile (select n
  223.   "aga-1.xsd" "aga-8.xsd" "rtg-1.xsd" "")) (
  224.    (set reldir "xsd")
  225.    (set srcdir (tackon @default-dest reldir))
  226.    (set fversion 131084)
  227.    (set fpath (tackon srcdir srcfile))
  228.    (if (exists fpath) (
  229.     (if (= fversion (getversion fpath)) (
  230.      (if (= (getsize fpath) (select n 86456 179460 120556))
  231.       (set pchfile (tackon (tackon (tackon source-dir "x11") reldir) (select n
  232.        "aga-1-000.14pch" "aga-8-000.14pch" "rtg-1-000.14pch" )
  233.       ))
  234.       (set pchfile (tackon (tackon (tackon source-dir "x11") reldir) (select n
  235.        "aga-1-030.14pch" "aga-8-030.14pch" "rtg-1-030.14pch" )
  236.       ))
  237.      )
  238.      (patchonefile)
  239.     ))
  240.    ))
  241.    (set n (+ n 1))
  242.  ))
  243. )
  244.    
  245. (procedure patch-to-216
  246.  (working)
  247.  (set n 0)
  248.  (while (set srcfile (select n
  249.   "xaw.library" "xaw3d.library" "xfont.library"
  250.   "xpm.library" "xt.library" "mkfontdir"
  251.   "xcalc" "xdaliclock" "")) (
  252.    (set reldir (select n
  253.     "libs" "libs" "libs" "libs" "libs" "bin" "bin" "bin"))
  254.    (set srcdir (tackon @default-dest reldir))
  255.    (set fversion (select n
  256.     131083 131084 131086 131084 131086 131072 131083 131084))
  257.    (set fpath (tackon srcdir srcfile))
  258.    (if (exists fpath) (
  259.     (if (= fversion (getversion fpath)) (
  260.      (set pchfile (tackon (tackon (tackon source-dir "x11") reldir) (select n
  261.       "xaw.16pch" "xaw3d.16pch" "xfont.16pch" "xpm.16pch" "xt.16pch"
  262.       "mkfontdir.16pch" "xcalc.16pch" "xdaliclock.16pch" )
  263.      ))
  264.      (patchonefile)
  265.     ))
  266.    ))
  267.    (set n (+ n 1))
  268.  ))
  269. )
  270.    
  271. (procedure patch-to-222
  272.  (working)
  273.  (set n 0)
  274.  (while (set srcfile (select n
  275.   "multibuf.xse" "sync.xse" "mitmisc.xle" "multibuf.xle" "shape.xle"
  276.   "sync.xle" "FvwmAudio" "FvwmAuto"
  277.   "FvwmBacker" "FvwmBanner" "FvwmClean" "FvwmDebug" "FvwmIconBox"
  278.   "FvwmIdent" "FvwmPager" "FvwmScroll" "FvwmWinList" "GoodStuff"
  279.   "amitcp.xtp" "as225.xtp" "xau.library" "xaw.library"
  280.   "xaw3d.library" "xfont.library" "xice.library" "xlib.library"
  281.   "xmu1.library" "xmu2.library" "xpm.library" "xt.library"
  282.   "xtrans.library" "xhost" "xkill" "xload" "xlogo" "xlsatoms"
  283.   "xlsclients" "xlsfonts" "xmodmap" "xpmroot" "xprop" "xrefresh"
  284.   "xrubik" "xset" "xsetroot" "xwd" "xwininfo" "xwud" "appres"
  285.   "atobm" "bdftopcf" "bitmap" "bmtoa" "dclock" "ico" "maze"
  286.   "mkfontdir" "oclock" "twm" "x11perf" "xauth" "xbench" "xcalc"
  287.   "xclock" "xdaliclock" "xdpyinfo" "xeyes" "xfd" "")) (
  288.    (set reldir (select n
  289.     "xse" "xse" "xle" "xle" "xle" "xle" "lib/x11/fvwm" 
  290.     "lib/x11/fvwm" "lib/x11/fvwm" "lib/x11/fvwm" "lib/x11/fvwm" 
  291.     "lib/x11/fvwm" "lib/x11/fvwm" "lib/x11/fvwm" "lib/x11/fvwm" 
  292.     "lib/x11/fvwm" "lib/x11/fvwm" "lib/x11/fvwm" "xtp" "xtp"
  293.     "libs" "libs" "libs" "libs" "libs" "libs" "libs" "libs" 
  294.     "libs" "libs" "libs" "bin" "bin" "bin" "bin" "bin" "bin" "bin" 
  295.     "bin" "bin" "bin" "bin" "bin" "bin" "bin" "bin" "bin" "bin" 
  296.     "bin" "bin" "bin" "bin" "bin" "bin" "bin" "bin" "bin" "bin" 
  297.     "bin" "bin" "bin" "bin" "bin" "bin" "bin" "bin" "bin" "bin" ))
  298.    (set srcdir (tackon @default-dest reldir))
  299.    (set fpath (tackon srcdir srcfile))
  300.    (if (exists fpath) (
  301.     (set pchfile (tackon (tackon (tackon source-dir "x11") reldir) (select n
  302.      "multibuf.pch" "sync.pch" "mitmisc.pch" "multibuf.pch" "shape.pch"
  303.      "sync.pch" "FvwmAudio.pch" "FvwmAuto.pch"
  304.      "FvwmBacker.pch" "FvwmBanner.pch" "FvwmClean.pch" "FvwmDebug.pch" "FvwmIconBox.pch"
  305.      "FvwmIdent.pch" "FvwmPager.pch" "FvwmScroll.pch" "FvwmWinList.pch" "GoodStuff.pch"
  306.      "amitcp.pch" "as225.pch" "xau.pch" "xaw.pch"
  307.      "xaw3d.pch" "xfont.pch" "xice.pch" "xlib.pch"
  308.      "xmu1.pch" "xmu2.pch" "xpm.pch" "xt.pch"
  309.      "xtrans.pch" "xhost.pch" "xkill.pch" "xload.pch" "xlogo.pch" "xlsatoms.pch"
  310.      "xlsclients.pch" "xlsfonts.pch" "xmodmap.pch" "xpmroot.pch" "xprop.pch" "xrefresh.pch"
  311.      "xrubik.pch" "xset.pch" "xsetroot.pch" "xwd.pch" "xwininfo.pch" "xwud.pch" "appres.pch"
  312.      "atobm.pch" "bdftopcf.pch" "bitmap.pch" "bmtoa.pch" "dclock.pch" "ico.pch" "maze.pch"
  313.      "mkfontdir.pch" "oclock.pch" "twm.pch" "x11perf.pch" "xauth.pch" "xbench.pch" "xcalc.pch"
  314.      "xclock.pch" "xdaliclock.pch" "xdpyinfo.pch" "xeyes.pch" "xfd.pch")
  315.     ))
  316.     (patchonefile)
  317.    ))
  318.    (set n (+ n 1))
  319.  ))
  320.  
  321.  (complete 43)
  322.  (working)
  323.  (set n 0)
  324.  (while (set srcfile (select n
  325.   "aga-1.xsd" "aga-8.xsd" "rtg-1.xsd" "")) (
  326.    (set reldir "xsd")
  327.    (set srcdir (tackon @default-dest reldir))
  328.    (set fpath (tackon srcdir srcfile))
  329.    (if (exists fpath) (
  330.     (if (= (getsize fpath) (select n 87516 179180 120720))
  331.      (set pchfile (tackon (tackon (tackon source-dir "x11") reldir) (select n
  332.       "aga-1-000.pch" "aga-8-000.pch" "rtg-1-000.pch" )
  333.      ))
  334.      (set pchfile (tackon (tackon (tackon source-dir "x11") reldir) (select n
  335.       "aga-1-030.pch" "aga-8-030.pch" "rtg-1-030.pch" )
  336.      ))
  337.     )
  338.     (patchonefile)
  339.    ))
  340.    (set n (+ n 1))
  341.  ))
  342.  
  343.  (complete 46)
  344.  (copyfiles
  345.   (source (tackon source-dir "x11/xle/amiwinmisc.xle"))
  346.   (dest (tackon @default-dest "xle"))
  347.  )
  348.  (complete 47)
  349.  (copyfiles
  350.   (source (tackon source-dir "x11/xle/lbx.xle"))
  351.   (dest (tackon @default-dest "xle"))
  352.  )
  353.  (complete 48)
  354.  (copyfiles
  355.   (source (tackon source-dir "x11/Help"))
  356.   (dest (tackon @default-dest "Help"))
  357.   (all)
  358.  )
  359.  (complete 49)
  360.  (if (not (exists (tackon @default-dest "lib/x11/app-defaults/Editres")))
  361.   (copyfiles
  362.    (source (tackon source-dir "x11/lib/x11/app-defaults/Editres"))
  363.    (dest (tackon @default-dest "lib/x11/app-defaults"))
  364.   )
  365.  )
  366.  (if (not (exists (tackon @default-dest "lib/x11/app-defaults/XClipboard")))
  367.   (copyfiles
  368.    (source (tackon source-dir "x11/lib/x11/app-defaults/XClipboard"))
  369.    (dest (tackon @default-dest "lib/x11/app-defaults"))
  370.   )
  371.  )
  372.  (if (not (exists (tackon @default-dest "lib/x11/app-defaults/Xmag")))
  373.   (copyfiles
  374.    (source (tackon source-dir "x11/lib/x11/app-defaults/Xmag"))
  375.    (dest (tackon @default-dest "lib/x11/app-defaults"))
  376.   )
  377.  )
  378. )
  379.  
  380. (procedure install-common-files
  381.  (copyfiles
  382.   (source (tackon source-dir "bin/AWDecrypt"))
  383.   (dest (tackon @default-dest "bin"))
  384.  )
  385.  
  386.  (complete 55)
  387.  (working)
  388.  (if (exists (tackon source-dir "new_common.awea")) (
  389.   (run (cat "\"" (tackon @default-dest "bin/AWDecrypt") "\" \"" (tackon source-dir "new_common.awea") "\" \"" source-dir "\""))
  390.   (if (not (exists (tackon source-dir "new_common.zip")))
  391.    (abort "Unable to decrypt new_common.awea")
  392.   )
  393.   (delete (tackon source-dir "new_common.awea"))
  394.  ))
  395.  
  396.  (complete 60)
  397.  (run (cat "\"" (tackon source-dir "bin/unzip") "\" -o -qq \"" (tackon source-dir "new_common.zip") "\" -d \"" @default-dest "\""))
  398.  
  399.  (complete 70)
  400.  (run (cat "protect \"" (tackon @default-dest "man/#?.man") "\" -hpase"))
  401.  (run (cat "protect \"" (tackon @default-dest "man/#?.man") "\" +rwd"))
  402.  
  403. (procedure install-000-files
  404.  (working)
  405.  (if (exists (tackon source-dir "new_000.awea")) (
  406.   (run (cat "\"" (tackon @default-dest "bin/AWDecrypt") "\" \"" (tackon source-dir "new_000.awea") "\" \"" source-dir "\""))
  407.   (if (not (exists (tackon source-dir "new_000.zip")))
  408.    (abort "Unable to decrypt new_000.awea")
  409.   )
  410.   (delete (tackon source-dir "new_000.awea"))
  411.  ))
  412.  
  413.  (complete 90)
  414.  (run (cat "\"" (tackon source-dir "bin/unzip") "\" -o -qq \"" (tackon source-dir "new_000.zip") "\" -d \"" @default-dest "\""))
  415.  
  416. (procedure install-030-files
  417.  (working)
  418.  (if (exists (tackon source-dir "new_030.awea")) (
  419.   (run (cat "\"" (tackon @default-dest "bin/AWDecrypt") "\" \"" (tackon source-dir "new_030.awea") "\" \"" source-dir "\""))
  420.   (if (not (exists (tackon source-dir "new_030.zip")))
  421.    (abort "Unable to decrypt new_030.awea")
  422.   )
  423.   (delete (tackon source-dir "new_030.awea"))
  424.  ))
  425.  
  426.  (complete 90)
  427.  (run (cat "\"" (tackon source-dir "bin/unzip") "\" -o -qq \"" (tackon source-dir "new_030.zip") "\" -d \"" @default-dest "\""))
  428.  
  429.    
  430. ;;;; Start
  431.  
  432. (set app-name "AmiWin 2.22reg")
  433.  
  434. (complete 0)
  435.  
  436. (run "avail flush")
  437.  
  438. (set source-dir (if (= 1 (exists @icon)) (pathonly (expandpath @icon))
  439.  (expandpath @icon))
  440. )
  441.  
  442. (select-destination-directory)
  443.  
  444. (check-amiwin-version)
  445.  
  446. (complete 5)
  447.  
  448. (set proc-version
  449.  (select
  450.   (askchoice
  451.    (prompt "Please select for which CPU you want the AmiWin "
  452.     "update to be installed:")
  453.    (help "AmiWin can be installed in a version that can "
  454.     "be run on any cpu (->68000), or in a version that "
  455.     "requires a 68030 or higher and a 68881 or higher."
  456.    )
  457.    (choices "68000"
  458.     "68030/68881")
  459.    (default 0)
  460.   )
  461.   0 30881
  462.  )
  463. )
  464.  
  465. (complete 10)
  466.  
  467. (delete-old-files)
  468.  
  469. (complete 20)
  470.  
  471. (patch-to-214)
  472.  
  473. (complete 30)
  474.  
  475. (patch-to-216)
  476.  
  477. (complete 40)
  478.  
  479. (patch-to-222)
  480.  
  481. (complete 50)
  482.  
  483. (install-common-files)
  484.  
  485. (complete 80)
  486.  
  487. (if (= 0 proc-version)
  488.  (install-000-files)
  489.  (install-030-files)
  490. )
  491.  
  492. (run "avail flush")
  493.  
  494. (complete 100)
  495.  
  496. (exit "Installation of the update to "
  497.  "AmiWin 2.22 reg is finished.")
  498.